services.mosquitto.listeners.*.users.<name>.hashedPasswordFile
Specifies the path to a file containing the
hashed password for the MQTT user.
To generate hashed password install the mosquitto
package and use mosquitto_passwd, then remove the
username: prefix from the generated file.
The file is securely passed to mosquitto by
leveraging systemd credentials. No special
permissions need to be set on this file.
- Type
null or absolute path- Default
null- Example
"/path/to/file"- Declared
- <nixpkgs/nixos/modules/services/networking/mosquitto.nix>